package com.ds.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringBoot
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-04-11
 **/
@RestController
public class HelloController {
    @Value("${user.last-name}")
    String userName;

    @RequestMapping("/hello")
    public String hello(){
        return userName+"hello";
    }
}
